package rmmk.zadanie2;

import org.junit.Test;

public class Zadanie2 {

	@Test
	public void ex100(){
		TestAndAnalize taa = new TestAndAnalize(new Binary(), new Linear());
		taa.testAndAnalize(1, 100, 1, 0.1);
		
		TestAndAnalize taa2 = new TestAndAnalize(new Binary(), new Linear());
		taa.testAndAnalize(1, 100, 1, 0.5);
		
		TestAndAnalize taa3 = new TestAndAnalize(new Binary(), new Linear());
		taa.testAndAnalize(1, 100, 1, 0.9);
	}
	
	@Test
	public void ex1000(){
		TestAndAnalize taa = new TestAndAnalize(new Binary(), new Linear());
		taa.testAndAnalize(10, 1000, 1, 0.1);
		
		TestAndAnalize taa2 = new TestAndAnalize(new Binary(), new Linear());
		taa.testAndAnalize(10, 1000, 1, 0.5);
		
		TestAndAnalize taa3 = new TestAndAnalize(new Binary(), new Linear());
		taa.testAndAnalize(10, 1000, 1, 0.9);
	}
	
	@Test
	public void ex10000(){
		TestAndAnalize taa = new TestAndAnalize(new Binary(), new Linear());
		taa.testAndAnalize(10, 10000, 10, 0.1);
		
		TestAndAnalize taa2 = new TestAndAnalize(new Binary(), new Linear());
		taa.testAndAnalize(10, 10000, 10, 0.5);
		
		TestAndAnalize taa3 = new TestAndAnalize(new Binary(), new Linear());
		taa.testAndAnalize(10, 10000, 10, 0.9);
	}
	
	@Test
	public void ex100000(){
		TestAndAnalize taa = new TestAndAnalize(new Binary(), new Linear());
		taa.testAndAnalize(100, 100000, 100, 0.1);
		
		TestAndAnalize taa2 = new TestAndAnalize(new Binary(), new Linear());
		taa.testAndAnalize(100, 100000, 100, 0.5);
		
		TestAndAnalize taa3 = new TestAndAnalize(new Binary(), new Linear());
		taa.testAndAnalize(100, 100000, 100, 0.9);
	}
	
	@Test
	public void ex1000000(){
		TestAndAnalize taa = new TestAndAnalize(new Binary(), new Linear());
		taa.testAndAnalize(1000, 1000000, 1000, 0.1);
		
		TestAndAnalize taa2 = new TestAndAnalize(new Binary(), new Linear());
		taa.testAndAnalize(1000, 1000000, 1000, 0.5);
		
		TestAndAnalize taa3 = new TestAndAnalize(new Binary(), new Linear());
		taa.testAndAnalize(1000, 1000000, 1000, 0.9);
	}
	
}
